var app = getApp(),
  $ = require("../../utils/httpHelper.js")
Page({
  data: {
    member_info:{},
    list:[],
    member_id:0
  },
  onShareAppMessage: function (res) {
    app.shareApp(res)
  },
  onLoad: function (options) {
    if(options.scene){
      this.setData({
        member_id:options.scene
      })
    }
    $.httpPost("service_record", { rd_session: wx.getStorageSync('rd_session'), order_no: this.data.member_id }, (data, err) => {
      if(data.result == 'success'){
        this.setData({
          member_info:data.data.member_info,
          list:data.data.list
        })
      }else{
        wx.showToast({
          title: data.message,
        })
      }
    })
    
  },
  
});